package com.example.smartplay.mapper;

import com.example.smartplay.entity.Activity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.smartplay.entity.Notice;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 
 * @since 2024-07-11
 */
@Mapper
public interface ActivityMapper extends BaseMapper<Activity> {
    @Select("select * from activity")
    List<Activity> list();
    @Select("select count(*) from activity")
    int countActivities();



    //分页查询活动
    List<Activity> getActivities(Integer clubId, Integer pageNum, Integer pageSize);



}
